﻿using System.Collections.Generic;
using System.Linq;

namespace QstkCore.Util
{
    public enum FillDirection
    {
        Forward,
        Backward
    };

    public static class ListUtil
    {
        public static List<T> RepeatedDefault<T>(int count)
        {
            return Repeated(default(T), count);
        }

        public static List<T> Repeated<T>(T value, int count)
        {
            var ret = new List<T>(count);
            ret.AddRange(Enumerable.Repeat(value, count));
            return ret;
        }
    }
}
